package game.ouroboros;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

import android.util.Log;
import framework.Screen;
import framework.graphics.opengl.GLEngine;
import game.ouroboros.screens.MenuGameScreen;

public class OuroborosGame extends GLEngine {
	private boolean firstTime = true;

	public OuroborosGame() {
		Log.v("<Chamada>", "Ouroboros Criada");
	}

	@Override
	public Screen getStartScreen() {
		Log.v("<Chamada>", "OuroborosGame.getStartScreen()");
		// TODO Auto-generated method stub
		return new MenuGameScreen(this);
	}

	@Override
	public void onSurfaceCreated(GL10 gl, EGLConfig config) {
		Log.v("<Chamada>", "OuroborosGame.onSurfaceCreated()");
		super.onSurfaceCreated(gl, config);
		if (firstTime) {
			Assets.load(this);
			firstTime = false;
		} else {
			Assets.reload();
		}
		Log.v("<FIM>", "OuroborosGame.onSurfaceCreated()");
	}

}
